﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using WindowsFormsElementApp.ControlExtension.Theme;

namespace WindowsFormsElementApp
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            SetColorPanel();
        }

        private void SetColorPanel()
        {
            BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBase;

            labelPrimary.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelPrimary.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorPrimary;

            labelSuccess.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelSuccess.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorSuccess;

            labelWarning.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelWarning.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorWarning;

            labelDanger.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelDanger.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorDanger;

            labelInfo.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelInfo.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorInfo;

            labelPrimaryText.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelPrimaryText.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorFontPrimary;

            labelRegularText.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelRegularText.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorFontRegular;

            labelSecondaryText.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelSecondaryText.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorFontSecondary;

            labelPlaceholder.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelPlaceholder.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorFontPlaceholder;

            labelBorderBase.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBlack;
            labelBorderBase.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBorderBase;

            labelBorderLight.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBlack;
            labelBorderLight.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBorderLight;

            labelBorderLighter.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBlack;
            labelBorderLighter.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBorderLighter;

            labelBorderExtralight.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBlack;
            labelBorderExtralight.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBorderExtraLight;

            labelBackgroundB.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;
            labelBackgroundB.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBlack;

            labelBackgroundW.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBlack;
            labelBackgroundW.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundWhite;

            labelBackground.ForeColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundBlack;
            labelBackground.BackColor = ThemeColorFactory.GetThemeColor(Theme.Defult).ColorBackgroundTransparent;
        }

        private void cmButtonExt1_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("sss");
        }
    }
}
